package job.j02;

public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog("旺财","黄色",599.21);
        Cat cat=new Cat("波斯猫","黑色",9999.99);
        System.out.println(dog.getName()+dog.eat());
        System.out.println(dog.getName()+dog.showHome());
        System.out.println("-----------------------------");
        System.out.println(cat.getName()+cat.eat());
        System.out.println(cat.getName()+cat.getName());
    }
}
